package com.wtwd.campus.receiver;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class ReceiveMsgServiceContext {
   private  final Map<String,IReceiverHandler> map=new HashMap<>();
   public IReceiverHandler getIReceiverHandler(String key){return map.get(key);}
   public void putIReceiverHandler(String key,IReceiverHandler iReceiverHandler){map.put(key,iReceiverHandler);};
}
